package cn.edu.cdu.group4nb.service.impl;

import cn.edu.cdu.group4nb.mapper.DoSalaryMapper;
import cn.edu.cdu.group4nb.po.BaseSalary;
import cn.edu.cdu.group4nb.service.DoSalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * ClassName: DoSalaryServiceImpl
 * Package: cn.edu.cdu.group4nb.service.impl
 *
 * @date: 2019-10-09 20:23
 * @author:timexin
 */
@Service
public class DoSalaryServiceImpl implements DoSalaryService {
    @Autowired
    private DoSalaryMapper doSalaryMapper;

    @Override
    public List<Map<String, Object>> ViewSalary() {

        return doSalaryMapper.DoSelectSalary();
    }

    @Override
    public void SetBaseSalary(Map<String,Object> map) {
       doSalaryMapper.SetBaseSalary(map);

    }

    @Override
    public List<Map<String, Object>> UserSalary() {

        return doSalaryMapper.UserSalary();
    }

    @Override
    public List<BaseSalary> SelectSalary() {

        return doSalaryMapper.SelectSalary();
    }
}
